package Model;

import java.io.Serializable;

/*
 * @author Roch San Buenventura
 */

public class PropertyOwns6 extends PropertyState implements Serializable 
{

	private static PropertyOwns6 INSTANCE = null;
	final static long serialVersionUID = 215;
	
	protected PropertyOwns6() 
	{

	}
	
	public static PropertyState Instance() 
	{
		if (INSTANCE == null) {
			INSTANCE = new PropertyOwns6();
		}
		
		return INSTANCE;
	}

	public void landOn(Player player, PropertySpace property) 
	{
		property.getOwner().collectRent(property.getRentValues()[5], player);
	}

	protected void ownershipIncrease(PropertySpace p)
	{
		p.changeState(PropertyOwns7.Instance());
	}
	
	protected void ownershipDecrease(PropertySpace p) 
	{
		p.changeState(PropertyOwns5.Instance());
	}
	
	protected String getNameAndStatus()
	{
		return " (6 Owned)";
	}
	
	public String toString()
	{
		return "PropertyOwns6";
	}
}
